package cn.icare.cms.feignclients;

import cn.icare.cms.model.vo.rest.RespMsgVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Classname AreaClient
 * @Description TODO @FeignClient("microservice-app") 参数是其它微服务名称，这里需要调用microservice-app-web项目，它注册到Eureka中的名称为microservice-app
 * @Date 2020/3/6 10:45
 * @Created by Administrator
 */
@FeignClient("microservice-app")
@Service
public interface AreaClient {

    //获取所有区域列表
    @GetMapping("/rest/area")
    ResponseEntity<RespMsgVO> getAreaList(@RequestParam("name") final String name
            , @RequestParam("pageNum") final Integer pageNum, @RequestParam("PageSize") final Integer PageSize,
                                          @RequestParam("parentId") final Long parentId);
}
